12-1: Create JS objects
For your assignment:
- Use the javascript parallel arrays to create three Javascript objects called book1, book2, book3.
- For each object create a method called studentDiscountPrice( ). This method will display the book price discounted by 20%.
- Display the contents of each book object on the web page.
- Create a Javascript array called javascriptBooks. Load the book objects into the array.
- Use a loop to process the contents of the javascriptBooks array. Display all the information for each book to the web page.